package org.example.classTest;

/**
 * @description:
 * @author: farprt
 * @create: 2022-08-16 00:44
 **/
public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        MyClassLoader cl1=new MyClassLoader();
        String className="org.example.classTest.MyClassLoader";
        Class class1=cl1.loadClass(className);
        MyClassLoader cl2=new MyClassLoader();
        Class class2=cl2.loadClass(className);
        if(class1!=class2){
            System.out.println("diff");
        }
    }
}